list-[id].vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 页面导航 -->
  6. <HomePageNavigation></HomePageNavigation>
  7. <!-- 广告1 -->
  8. <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
  9. <!-- 二级导航列表 -->
  10. <div class="nav2top" v-if="parent_name != ''"></div>
  11. <div class="nav2" v-if="parent_name != ''">
  12. <ul class="inner">
  13. <li class="home">
  14. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  15. </li>
  16. <li class="titleList" v-for="(item, index) in secondNav" :key="index">
  17. <NuxtLink :to="{ path: `/${item.aLIas_pinyin}/list-1.html` }">
  18. <span class="nav2_title">{{ item.alias }}</span>
  19. </NuxtLink>
  20. </li>
  21. </ul>
  22. </div>
  23. <div class="nav2btm" v-if="parent_name != ''"></div>
  24. <!-- 面包屑导航 -->
  25. <div class="breadcrumb">
  26. <div class="inner">
  27. <span class="location">当前位置:</span>
  28. <el-breadcrumb :separator-icon="ArrowRight">
  29. <el-breadcrumb-item>
  30. <NuxtLink to="/">首页</NuxtLink>
  31. </el-breadcrumb-item>
  32. <el-breadcrumb-item v-if="parent_name != ''">
  33. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  34. </el-breadcrumb-item>
  35. <el-breadcrumb-item>{{ name }}</el-breadcrumb-item>
  36. </el-breadcrumb>
  37. </div>
  38. </div>
  39. <!-- 资讯列表 -->
  40. <div class="newsList">
  41. <div class="inner">
  42. <div class="innerLeft">
  43. <ul class="list">
  44. <li v-for="(item, index) in newsList" :key="index">
  45. <NuxtLink :href="getLinkPathDetail(item)" :title="item.alias">
  46. <span class="listTitle">{{ item.title }}</span>
  47. <span class="time">{{ getTime(item.updated_at, 'month', 1) }}</span>
  48. </NuxtLink>
  49. </li>
  50. </ul>
  51. <!-- 分页器 -->
  52. <div class="pagination" v-if="total">
  53. <el-pagination size="small" background layout="prev, pager, next" :total="total" class="mt-4"
  54. v-model:page-size="pageSize" prev-text="上一页" next-text="下一页" :current-page="pageNum"
  55. @current-change="changePage" />
  56. </div>
  57. </div>
  58. <div class="innerRight">
  59. <DetailHotNews></DetailHotNews>
  60. <DetailHotNews2></DetailHotNews2>
  61. </div>
  62. </div>
  63. </div>
  64. <!-- 列表页广告二 -->
  65. <HomeAdvertising :imgurl="adImg2"></HomeAdvertising>
  66. <!-- 页面底部 -->
  67. <HomeFoot1></HomeFoot1>
  68. </div>
  69. </template>
  70. <script setup>
  71. import { onMounted } from 'vue';
  72. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination, ElMessage } from 'element-plus'
  73. import { ArrowRight } from '@element-plus/icons-vue'
  74. // const nuxtApp = useNuxtApp();
  75. // const axios = nuxtApp.$axios;
  76. //1.获得路由id start ---------------------------------------->
  77. const route = useRoute();
  78. let articleId = 0;//路由id
  79. let pageNum = ref(2);
  80. let total = ref(1);
  81. let pageSize = ref(20);
  82. //获得当前的完整路径
  83. const fullPath = route.path;
  84. //拆分,取出来中间这一段,然后提取数字部分
  85. const segments = fullPath.split('/');
  86. const targetSegment = segments[1];
  87. //const numberPart = targetSegment.match(/\d+$/)?.[0];
  88. //let routeId = 20 //排除路径错误可以打开这个
  89. //通过导航路径反向查询导航id
  90. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  91. method: 'GET',
  92. query: {
  93. 'pinyin': targetSegment,
  94. },
  95. });
  96. if (getRouteId.code == 200) {
  97. articleId = getRouteId.data.category_id
  98. } else {
  99. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  100. console.log("错误位置:通过url路径查询导航池id")
  101. console.log("后端错误反馈:", getRouteId.message)
  102. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  103. }
  104. //获得html前的数字
  105. // const pageUrl = segments[2];
  106. // const pageNumber = pageUrl.split('.')[0];
  107. // console.log("当前URL中的页码:")
  108. // console.log(pageNumber)//2
  109. // pageNum.value = parseInt(pageNumber);
  110. pageNum.value = parseInt(route.params.id);
  111. //1.获得路由id end ---------------------------------------->
  112. //2.页面数据 start ---------------------------------------->
  113. //2.2新闻列表
  114. const newsList = ref([]);
  115. let newslists = async () => {
  116. const listData = await requestDataPromise('/web/getWebsiteArticleList', {
  117. method: 'GET',
  118. query: {
  119. 'page': pageNum.value,
  120. 'pageSize': pageSize.value,
  121. 'catid': articleId
  122. },
  123. });
  124. if (listData.code == 200) {
  125. newsList.value = listData.data.rows;
  126. total.value = listData.data.count;
  127. console.log('news111111', newsList.value);
  128. } else {
  129. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  130. console.log("错误位置:获取新闻列表")
  131. console.log("后端错误反馈1111:", listData.message)
  132. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  133. }
  134. }
  135. //获得列表
  136. newslists();
  137. //分页事件
  138. let changePage = (value) => {
  139. console.log("当前页码", value);
  140. navigateTo(`/${targetSegment}/list-${value}.html`)
  141. }
  142. //2.3获得页面名称
  143. const name = ref('')
  144. let getPageName = async () => {
  145. const pageName = await requestDataPromise('/web/getOneWebsiteCategory', {
  146. method: 'GET',
  147. query: {
  148. 'catid': articleId
  149. },
  150. });
  151. if (pageName.code == 200) {
  152. name.value = pageName.data.alias
  153. } else {
  154. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  155. console.log("错误位置:设置页面标题")
  156. console.log("后端错误反馈:", pageName.message)
  157. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  158. }
  159. }
  160. //获得列表
  161. getPageName();
  162. //2.页面数据 end ---------------------------------------->
  163. //3.二级栏目 start ---------------------------------------->
  164. //3.1通过id获取父栏目
  165. const parent_name = ref([]);
  166. const parent_id = ref([]);
  167. const parent_pinyin = ref("");
  168. let getParentNav = async () => {
  169. const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
  170. method: 'GET',
  171. query: {
  172. 'catid': articleId
  173. },
  174. });
  175. if (listData.code == 200) {
  176. // console.log(111999)
  177. // console.log(listData.data);
  178. parent_name.value = listData.data.parent_name;
  179. parent_id.value = listData.data.parent_id;
  180. parent_pinyin.value = listData.data.parent_pinyin;
  181. } else {
  182. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  183. console.log("错误位置:获取新闻列表")
  184. console.log("后端错误反馈:", listData.message)
  185. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  186. }
  187. getSecondNav();
  188. }
  189. //获得父级栏目详情
  190. getParentNav();
  191. // 3.2获取二级栏目
  192. const secondNav = ref([]);
  193. let getSecondNav = async () => {
  194. const listData = await requestDataPromise('/web/getWebsiteModelCategory', {
  195. method: 'GET',
  196. query: {
  197. 'placeid': 1,
  198. 'pid': parent_id.value,
  199. 'num': 8,
  200. },
  201. });
  202. console.log('listData', listData);
  203. // secondNav.value = listData.data;
  204. if (listData.code == 200) {
  205. secondNav.value = listData.data;
  206. console.log('secondNav', secondNav.value);
  207. } else {
  208. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  209. console.log("错误位置:获取新闻列表")
  210. console.log("后端错误反馈:", listData.message)
  211. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  212. }
  213. }
  214. //3.二级栏目 end ---------------------------------------->
  215. //4.设置seo信息 start---------------------------------------->
  216. //4.1 设置seo信息
  217. const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
  218. method: 'GET',
  219. query: {
  220. 'catid': articleId
  221. },
  222. });
  223. if (setData.code == 200) {
  224. let seoTitle = setData.data.seo_title;
  225. let seoDescription = setData.data.seo_description;
  226. let seoKeywords = setData.data.seo_keywords;
  227. let seoSuffix = setData.data.suffix;
  228. let seoName = setData.data.website_name;
  229. useSeoMeta({
  230. title: seoTitle + "_" + seoName + "_" + seoSuffix,
  231. meta: [
  232. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  233. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
  234. ]
  235. });
  236. } else {
  237. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  238. console.log("错误位置:设置列表页面SEO数据")
  239. console.log("后端错误反馈:", setData.message)
  240. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  241. }
  242. //4.设置seo信息 end---------------------------------------->
  243. //5.广告 start---------------------------------------->
  244. let adImg1 = ref({});
  245. let adImg2 = ref({});
  246. onMounted(async () => {
  247. //从客户端获取行政职能部门 加快打开速度
  248. const { $webUrl, $CwebUrl } = useNuxtApp();
  249. //广告1
  250. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_list_0001`
  251. const responseAd1 = await fetch(url, {
  252. headers: {
  253. 'Content-Type': 'application/json',
  254. 'Userurl': $CwebUrl,
  255. 'Origin': $CwebUrl
  256. }
  257. });
  258. const resultAd1 = await responseAd1.json();
  259. adImg1.value = resultAd1.data[0];
  260. console.log('adImg1', adImg1.value);
  261. //广告2
  262. let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_list_0002`
  263. const responseAd2 = await fetch(url2, {
  264. headers: {
  265. 'Content-Type': 'application/json',
  266. 'Userurl': $CwebUrl,
  267. 'Origin': $CwebUrl
  268. }
  269. });
  270. const resultAd2 = await responseAd2.json();
  271. adImg2.value = resultAd2.data[0];
  272. })
  273. //5.广告 end---------------------------------------->
  274. // 6.跳转 start ---------------------------------------->
  275. const getLinkPathDetail = (item) => {
  276. if (item.islink == 1) {
  277. return `${item.linkurl}`;
  278. } else {
  279. return `/${item.pinyin}/${item.id}.html`;
  280. }
  281. }
  282. // 6.跳转 end ---------------------------------------->
  283. </script>
  284. <style lang="less" scoped>
  285. #newsList {
  286. width: 100%;
  287. overflow: hidden;
  288. }
  289. .nav2top {
  290. width: 1250px;
  291. height: 3px;
  292. margin: 0 auto;
  293. background-color: #a01c0e;
  294. }
  295. .nav2btm {
  296. width: 1200px;
  297. height: 3px;
  298. margin: 0 auto;
  299. background-color: #a01c0e;
  300. }
  301. .nav2 {
  302. width: 100%;
  303. height: 48px;
  304. background-color: #a01c0e;
  305. .inner {
  306. width: 1250px;
  307. height: 48px;
  308. line-height: 48px;
  309. padding: 0 45px;
  310. margin: 0 auto;
  311. box-sizing: border-box;
  312. display: flex;
  313. // justify-content: space-between;
  314. .titleList {
  315. font-family: Microsoft YaHei, Microsoft YaHei;
  316. font-weight: bold;
  317. font-size: 14px;
  318. color: #FFFFFF;
  319. .nav2_title {
  320. display: inline-block;
  321. font-family: Microsoft YaHei, Microsoft YaHei;
  322. font-weight: bold;
  323. font-size: 14px;
  324. color: #FFFFFF;
  325. }
  326. a {
  327. padding: 0 38px;
  328. color: #FFFFFF;
  329. border-left: 1px solid #7E1C11;
  330. }
  331. //鼠标点击后的样式
  332. .nav2_title_active {
  333. display: inline-block;
  334. font-family: Microsoft YaHei, Microsoft YaHei;
  335. font-weight: bold;
  336. font-size: 14px;
  337. color: #FFFFFF;
  338. border-bottom: 1px solid #FFFFFF;
  339. }
  340. }
  341. .titleList:hover {
  342. a {
  343. color: #a01c0e;
  344. .nav2_title {
  345. border-bottom: 1px solid #FFFFFF;
  346. }
  347. }
  348. }
  349. .home {
  350. width: 100px;
  351. font-family: Microsoft YaHei, Microsoft YaHei;
  352. font-weight: bold;
  353. font-size: 14px;
  354. color: #F8ECD2;
  355. a {
  356. color: #F8ECD2;
  357. margin-right: 39px;
  358. }
  359. }
  360. }
  361. }
  362. //导航条
  363. .breadcrumb {
  364. width: 100%;
  365. height: 22px;
  366. margin-bottom: 30px;
  367. font-family: Microsoft YaHei, Microsoft YaHei;
  368. font-weight: 400;
  369. font-size: 20px;
  370. color: #666666;
  371. line-height: 23px;
  372. text-align: left;
  373. font-style: normal;
  374. text-transform: none;
  375. margin-top: 40px;
  376. :deep(.el-breadcrumb) {
  377. display: inline-block;
  378. vertical-align: -4px;
  379. }
  380. :deep(.el-breadcrumb__inner a),
  381. :deep(.el-breadcrumb__inner.is-link) {
  382. color: #666666;
  383. font-weight: 400;
  384. text-decoration: none;
  385. transition: var(--el-transition-color);
  386. }
  387. span {
  388. font-family: Microsoft YaHei, Microsoft YaHei;
  389. font-weight: 400;
  390. font-size: 20px;
  391. color: #666666;
  392. line-height: 23px;
  393. text-align: left;
  394. font-style: normal;
  395. text-transform: none;
  396. }
  397. span:hover {
  398. color: #666666;
  399. }
  400. .location {
  401. margin-right: 20px;
  402. width: 100px;
  403. height: 22px;
  404. font-family: Microsoft YaHei, Microsoft YaHei;
  405. font-weight: 400;
  406. font-size: 20px;
  407. color: #666666;
  408. line-height: 23px;
  409. text-align: left;
  410. font-style: normal;
  411. text-transform: none;
  412. }
  413. }
  414. // 资讯列表
  415. .newsList {
  416. width: 100%;
  417. // height: 675px;
  418. overflow: hidden;
  419. margin-bottom: 70px;
  420. .inner {
  421. width: 1200px;
  422. .innerLeft,
  423. .innerRight {
  424. border-top: 1px solid #ccc;
  425. }
  426. .innerLeft {
  427. width: 820px;
  428. margin-right: 30px;
  429. .list {
  430. margin-bottom: 70px;
  431. li {
  432. width: 820px;
  433. padding: 15px 0;
  434. a {
  435. display: flex;
  436. justify-content: space-between;
  437. }
  438. .listTitle {
  439. // float: left;
  440. display: inline-block;
  441. width: 486px;
  442. white-space: nowrap;
  443. overflow: hidden;
  444. text-overflow: ellipsis;
  445. font-family: Microsoft YaHei, Microsoft YaHei;
  446. font-weight: 400;
  447. font-size: 20px;
  448. color: #333333;
  449. text-align: left;
  450. font-style: normal;
  451. text-transform: none;
  452. }
  453. .time {
  454. // float: right;
  455. font-family: Microsoft YaHei, Microsoft YaHei;
  456. font-weight: 400;
  457. font-size: 18px;
  458. color: #333333;
  459. }
  460. }
  461. >li:hover .listTitle {
  462. color: #a01c0e;
  463. }
  464. >li:nth-child(5n) {
  465. border-bottom: 1px solid #D9D9D9;
  466. padding-bottom: 30px;
  467. }
  468. >li:nth-child(5n+1) {
  469. span {
  470. font-weight: bold;
  471. }
  472. font-weight: bold;
  473. padding-top: 30px;
  474. }
  475. }
  476. >.pagination {
  477. width: 800px;
  478. height: 34px;
  479. margin-left: 141px;
  480. display: flex;
  481. justify-content: center;
  482. margin: 0;
  483. // 鼠标移入后字体颜色
  484. .el-pagination::v-deep :hover {
  485. color: #a01c0e;
  486. }
  487. .el-pagination.is-background::v-deep .btn-next,
  488. .el-pagination.is-background::v-deep .btn-prev {
  489. width: 70px;
  490. height: 34px;
  491. margin: 0px 10px;
  492. border-radius: 4px;
  493. }
  494. .el-pagination.is-background::v-deep .el-pager li {
  495. margin: 0px 10px;
  496. width: 38px;
  497. height: 34px;
  498. border-radius: 4px;
  499. }
  500. .el-pagination.is-background::v-deep .btn-next.is-active,
  501. .el-pagination.is-background::v-deep .btn-prev.is-active,
  502. .el-pagination.is-background::v-deep .el-pager li.is-active {
  503. background-color: #a01c0e;
  504. color: #fff;
  505. }
  506. }
  507. }
  508. .innerRight {
  509. width: 350px;
  510. height: 1242px;
  511. border-bottom: 1px solid #ccc;
  512. // height: 605px;
  513. }
  514. }
  515. }
  516. //资讯推荐
  517. .zixuntuijian {
  518. width: 100%;
  519. height: 290px;
  520. margin-bottom: 70px;
  521. .innerLeft {
  522. // 左侧
  523. .zixunLeft {
  524. margin-right: 30px;
  525. }
  526. .zixunRight,
  527. .zixunLeft {
  528. float: left;
  529. width: 380px;
  530. height: 290px;
  531. // 标题部分
  532. >.title {
  533. width: 380px;
  534. }
  535. >.title>h3 {
  536. height: 36px;
  537. font-family: Source Han Sans, Source Han Sans;
  538. font-weight: bold;
  539. font-size: 24px;
  540. color: #000000;
  541. line-height: 28px;
  542. text-align: left;
  543. font-style: normal;
  544. text-transform: none;
  545. border-bottom: 1px solid #a01c0e;
  546. }
  547. >.title>h3>span {
  548. float: right;
  549. width: 56px;
  550. height: 20px;
  551. line-height: 24px;
  552. font-weight: 400;
  553. font-size: 14px;
  554. color: #999999;
  555. font-style: normal;
  556. text-transform: none;
  557. }
  558. .photo_text {
  559. >li:first-child {
  560. width: 380px;
  561. height: 120px;
  562. margin-top: 20px;
  563. margin-bottom: 15px;
  564. position: relative;
  565. >img {
  566. float: left;
  567. width: 160px;
  568. height: 120px;
  569. }
  570. >div {
  571. float: left;
  572. width: 220px;
  573. height: 120px;
  574. padding-left: 15px;
  575. padding-top: 6px;
  576. box-sizing: border-box;
  577. background-color: #f6f6f6;
  578. >h5 {
  579. width: 200px;
  580. height: 54px;
  581. display: -webkit-box;
  582. -webkit-box-orient: vertical;
  583. -webkit-line-clamp: 2;
  584. overflow: hidden;
  585. text-overflow: ellipsis;
  586. word-break: break-all;
  587. font-family: Source Han Sans, Source Han Sans;
  588. font-weight: 500;
  589. font-size: 18px;
  590. color: #333333;
  591. line-height: 26px;
  592. text-align: left;
  593. font-style: normal;
  594. text-transform: none;
  595. }
  596. >p {
  597. width: 200px;
  598. height: 22px;
  599. line-height: 20px;
  600. position: absolute;
  601. bottom: 5px;
  602. right: 0;
  603. >span {
  604. display: inline-block;
  605. // width: 100px;
  606. height: 18px;
  607. font-family: Source Han Sans, Source Han Sans;
  608. font-weight: 400;
  609. font-size: 12px;
  610. color: #999999;
  611. text-align: left;
  612. line-height: 14px;
  613. font-style: normal;
  614. text-transform: none;
  615. }
  616. >span:last-child {
  617. // width: 90px;
  618. text-align: right;
  619. margin-left: 20px;
  620. }
  621. }
  622. }
  623. }
  624. >li {
  625. width: 380px;
  626. height: 25px;
  627. white-space: nowrap;
  628. overflow: hidden;
  629. text-overflow: ellipsis;
  630. font-family: PingFang SC, PingFang SC;
  631. font-weight: 500;
  632. font-size: 18px;
  633. color: #333333;
  634. line-height: 21px;
  635. text-align: left;
  636. font-style: normal;
  637. text-transform: none;
  638. margin-bottom: 10px;
  639. em {
  640. display: inline-block;
  641. width: 8px;
  642. height: 8px;
  643. border-radius: 8px;
  644. margin-right: 10px;
  645. background-color: #d9d9d9;
  646. }
  647. }
  648. >li:hover {
  649. color: #a01c0e;
  650. }
  651. >li:hover em {
  652. background-color: #a01c0e;
  653. }
  654. }
  655. }
  656. }
  657. .innerRight {
  658. width: 381px;
  659. height: 290px;
  660. background-color: #fbfbfb;
  661. >.title {
  662. width: 380px;
  663. height: 40px;
  664. line-height: 40px;
  665. border-top: 1px solid #a01c0e;
  666. border-bottom: 1px solid #e7e7e7;
  667. >h4 {
  668. font-family: Microsoft YaHei, Microsoft YaHei;
  669. font-weight: 400;
  670. margin-left: 20px;
  671. font-size: 20px;
  672. color: #000000;
  673. text-align: left;
  674. font-style: normal;
  675. text-transform: none;
  676. >span {
  677. float: right;
  678. font-family: Microsoft YaHei, Microsoft YaHei;
  679. font-weight: 400;
  680. font-size: 14px;
  681. margin-right: 10px;
  682. color: #999999;
  683. text-align: left;
  684. font-style: normal;
  685. text-transform: none;
  686. }
  687. }
  688. }
  689. .rightList {
  690. height: 540px;
  691. margin-top: 20px;
  692. >li {
  693. height: 100px;
  694. margin-bottom: 10px;
  695. >img {
  696. width: 150px;
  697. height: 100px;
  698. }
  699. >p {
  700. width: 219px;
  701. height: 100px;
  702. padding-left: 12px;
  703. font-family: PingFang SC, PingFang SC;
  704. font-weight: 400;
  705. font-size: 16px;
  706. color: #333333;
  707. line-height: 22px;
  708. text-align: left;
  709. font-style: normal;
  710. text-transform: none;
  711. }
  712. >p:hover {
  713. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  714. }
  715. }
  716. }
  717. }
  718. }
  719. </style>